package com.buobao.jdbc.demo;

import com.buobao.jdbc.demo.entity.Employee;

import java.util.List;

public class StandardJDBCSample {
    public static void main(String[] args) {
        DbOperation dbOperation = new DbOperation();
        //dbOperation.searchByName("王五");
        dbOperation.update(1001,"李四",3400,"工程部","1992-01-01");
        dbOperation.update(1002,"王五",3200,"工程部","1998-01-01");
        //dbOperation.searchByName("李四");
        //dbOperation.update(1003,"李四1",1200,"新部门");
        //dbOperation.delete(1002);
        List<Employee> result = dbOperation.getListByPage(1,10);
        for (int i=0;i<result.size();i++) {
            System.out.println(result.get(i).getEno());
        }
    }
}
